package com.warrantyhotel.android.util;

import android.content.Context;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.preference.PreferenceManager;

public class MyPreferences {

	private static SharedPreferences prefs;
	private static final String URI_VALUE = "uri";

	public static String getUri(Context context) {
		prefs = PreferenceManager.getDefaultSharedPreferences(context);
		return prefs.getString(URI_VALUE, null);
	}

	public static void setUri(Context context, String uri) {
		prefs = PreferenceManager.getDefaultSharedPreferences(context);
		final Editor edit = prefs.edit();
		edit.putString(URI_VALUE, uri);
		edit.commit();
	}

}
